Through trial and error, humans learned that certain herbs and plant products possessed medicinal qualities. The invention of writing made it possible to record this knowledge and pass it on to following generations by a method other than oral transmission. The science of medicine progressed gradually, improving the quality and length of life.